(function () {
    const articlist = document.getElementsByClassName('art_info')[0];
    // console.log(articlist);
    //实现文章详情跳转
    articlist.addEventListener('click', articFn);
    function articFn() {
        axios.get('/api/article', {}).then(function (res) {
            console.log(res);
            window.location.href = './articledetails.html';
        }).catch(function (error) {
            console.log(error);
        });
    }

})();
